package indi.kane.demandlist.dao;

import indi.kane.demandlist.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    @Select("SELECT * FROM Users WHERE `name`=#{name} and password=#{password}")
    User login(@Param("name") String name, @Param("password") String password);
}